<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="<?php echo site_url('admin/video/edit_video');?>" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					<select class="combox" name="name1" ref="w_combox_city" refUrl="<?php echo site_url('admin/video/add_video_list');?>/{value}">
                                            <option value="all">根分类</option>
                                            <?php foreach($list as $item):?>
                                                <option value="<?php echo $item->tid;?>"><?php echo $item->name;?></option>
                                            <?php endforeach;;?>
                                        </select>
                                            <select class="combox" name="name2" id="w_combox_city" ref="w_combox_area" refUrl="<?php echo site_url('admin/video/add_video_list');?>/{value}">
                                                    <option value="all">根分类</option>
                                        </select>
                                        <select class="combox" name="name3" id="w_combox_area">
                                                    <option value="all">根分类</option>
                                        </select>
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
                        <li><a class="add" href="<?php echo site_url('admin/video/video_data_line_list');?>/{sid_user}" target="navTab"><span>查看线路</span></a></li>
			<li><a class="delete" href="<?php echo site_url('admin/video/del_video_data');?>/{sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="<?php echo site_url('admin/video/edit_video_data');?>/{sid_user}" target="navTab"><span>修改</span></a></li>
                        <?php if($management):?><li><a  href="<?php echo site_url('admin/video/add_teaching_material/'.$id);?>/" target="dialog"><span>上传教材</span></a></li><?php endif;?>
			<li class="line">line</li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="130">视频名称</th>
				<th width="120">上传时间</th>
				<th width="100">是否免费</th>
				<th width="130">免费时长</th>
				<th width="100">视频线路数</th>
				<th></th>
			</tr>
		</thead>
		<tbody>
		<?php  foreach($data as $item):?>
			<tr target="sid_user" rel="<?php echo $item->id;?>">
				<td><?php echo $item->name;?></td>
				<td><?php echo date('Y年m月d日H时i分s秒',$item->time);?></td>
				<td><?php echo $item->free?'是':'否';?></td>
				<td><?php echo $item->free_length;?></td>
				<td><?php echo isset($count[$item->id])?$count[$item->id]:0;?></td>
				<td></td>
			</tr>
		<?php endforeach;?>
		</tbody>
	</table>
</div>